{extend name="base_iframe" /}


{block name="body"}
<section class="content">
	<div class="row">
		<div class="col-md-12">

			<form id="set" >
				<input type="hidden" name="id" value="{$id}">
				<div class="check-box pd-5">
					<input type="checkbox" id="checkbox-1" class="select-all">
					<label for="checkbox-1">全选/反选</label>
				</div>
				{volist name="parent" id="v"}
				<div class="col-md-3">
					<div class="box box-info collapsed-box index">
						<div class="box-header with-border">
							<h3 class="box-title">
								<input type="checkbox" name="auth_id[]" class="index-chkbox" value="{$v.id}" {$is_auth[$v['id']]? 'checked' : ''}/>&nbsp;&nbsp;{$v.title}
							</h3>

							<div class="box-tools pull-right">
								<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-plus"></i>
								</button>
							</div>
							<!-- /.box-tools -->
						</div>
						<!-- /.box-header -->
						{volist name="v.child" id="v1"}
						<div class="box-body">
							<input type="checkbox" name="auth_id[]" class="action-chkbox" value="{$v1.id}" {$is_auth[$v1['id']]? 'checked' : ''}/>&nbsp;&nbsp;{$v1.title}
						</div>
						{/volist}
						<!-- /.box-body -->
					</div>
					<!-- /.box -->
				</div>
				{/volist}
			</form>

		</div>
	</div>
</section>
{/block}

{block name="script"}
	<script type="text/javascript" src="__AJS__/auth_group/set_auth_page.js"></script>
{/block}